package com.example.wechat.model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_wechat_group")
public class Group {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	@TableField("group_name")
	private String groupName;
	
	@TableField("group_avatar")
	private String groupAvatar;
	
	@TableField("group_owner")
	private String groupOwner;
	
	@TableField("group_desc")
	private String groupDesc;
	
	@TableField("max_members")
	private Integer maxMembers;
	
	@TableField("current_members")
	private Integer currentMembers;
	
	@TableField("group_type")
	private Integer groupType;
	
	private Integer status;
	
	@TableField("create_time")
	private LocalDateTime createTime;
	
	@TableField("update_time")
	private LocalDateTime updateTime;
	
	@TableField("del_flag")
	private Boolean delFlag;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupAvatar() {
		return groupAvatar;
	}

	public void setGroupAvatar(String groupAvatar) {
		this.groupAvatar = groupAvatar;
	}

	public String getGroupOwner() {
		return groupOwner;
	}

	public void setGroupOwner(String groupOwner) {
		this.groupOwner = groupOwner;
	}

	public String getGroupDesc() {
		return groupDesc;
	}

	public void setGroupDesc(String groupDesc) {
		this.groupDesc = groupDesc;
	}

	public Integer getMaxMembers() {
		return maxMembers;
	}

	public void setMaxMembers(Integer maxMembers) {
		this.maxMembers = maxMembers;
	}

	public Integer getCurrentMembers() {
		return currentMembers;
	}

    public void setCurrentMembers(Integer currentMembers) {
		this.currentMembers = currentMembers;
	}

	public Integer getGroupType() {
		return groupType;
	}

	public void setGroupType(Integer groupType) {
		this.groupType = groupType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}

	// 添加缺失的方法
	public String getCreator() {
		return groupOwner;
	}

	public void setCreator(String creator) {
		this.groupOwner = creator;
	}

	public Integer getMemberCount() {
		return currentMembers;
	}

	public void setMemberCount(Integer memberCount) {
		this.currentMembers = memberCount;
	}
}